<template>
  <!-- 村庄介绍弹框 -->
  <div v-if="showPopup" class="showPopup">
    <div class="title">{{ curProject.shortName }}</div>
    <div class="content">
      <div class="row1">
        <div>总投资(万元) <span style="font-weight: bold">{{curProject.amount}}</span></div>
      </div>
      <div class="row2">
        <div>开累投资(万元) <span style="font-weight: bold">{{curProject.allFinish}}</span></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CenterMapPopup',
  data() {
    return {};
  },
  props: {
    curProject: {
      type: Object,
      default: () => {
        return {
          shortName: '项目简称1',
          amount: 10000,
          allFinish: 5000,
          //项目其他信息
        };
      }
    },
    showPopup: {
      type: Boolean,
      default: false
    }
  }
};
</script>
<style lang="scss" scoped>
.showPopup {
  background-image: url("~@/views/cockpit/assets/bg-infoWindow.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;

  width: 180px;
  height: 100px;

  padding: 2px;
  font-size: 14px;
  line-height: 24px;

  .title {
    color: white;
    font-size: 16px;
  }
  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .row1 {
      color: #069dfd;
      line-height: 20px;
    }
    .row2 {
      color: #00fee5;
    }
  }
}
</style>
